package EvaTCPL;

public class EvaTCPLelseif extends EvaTCPLaexpression
{
  EvaTCPLbexpression condition;
  EvaTCPLaexpression thenpart;
  EvaTCPLelseif next;

  public EvaTCPLelseif(EvaTCPLbexpression thecondition, EvaTCPLaexpression thethenpart, EvaTCPLelseif thenext)
    {
      super();
      condition = thecondition;
      thenpart = thethenpart;
      next = thenext;
    }

  public String toString()
    {
      StringBuffer res = new StringBuffer();

      res.append(" elseif (");
      res.append(condition);
      res.append(") then ");
      res.append(thenpart);
	
      if (next!=null)
	res.append(next);

      return res.toString();
    }
}
